import { Injectable } from '@angular/core';
import { Http } from '@angular/http';

import { HttpService } from './HttpService';

@Injectable()
export class SettlementService {
  constructor (
    private http: Http,
    private httpService: HttpService
  ) {}

  getDate(data) {
    let url = '/api/settlement/getCheckInDate';
    return this.httpService.httpPostNoAuth(url, data);
  }

  save(data) {
    let url = '/api/settlement/save';
    return this.httpService.httpPostNoAuth(url, data);
  }

  getList(data) {
    let url = '/api/settlement/ls';
    return this.httpService.httpPostNoAuth(url, data);
  }

  get(data) {
    let url = '/api/settlement/get';
    return this.httpService.httpPostNoAuth(url, data);
  }

  remove(data) {
    let url = '/api/settlement/remove';
    return this.httpService.httpPostNoAuth(url, data);
  }
}
